package com.zackeus.mvvm.api.response;


import androidx.annotation.Nullable;

/**
 * @name: ResponseThrowable
 * @author: zz
 * @date: 2022/8/31
 */
public class ResponseThrowable extends Exception {
    private final int code;
    private final String message;

    public ResponseThrowable(int code, String message, Throwable throwable) {
        super(throwable);
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    @Nullable
    @Override
    public String getMessage() {
        return message;
    }
}
